<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h3>Listado de Canchas</h3>
	<form id="frmCanchas" name="frmCanchas" method="post" action="BuscarCanchaServlet">
	<%@page import="java.util.ArrayList, java.util.Collection, proteus.modelo.HorarioXCancha"%>
	<%
		Collection<HorarioXCancha> canchas = (ArrayList<HorarioXCancha>) request.getAttribute("CANCHAS");				
		out.println("<ul>");
		if (canchas != null) {
		out.println(" <table border=\"1\">"); 							/*<!-- agrego linea para tabla -- >*/
			for (HorarioXCancha x: canchas) {
	//			out.println("<li>" + x.getNombreCompleto() + "</li>"); 				/*<!-- modifico linea para tabla -- >*/
				out.println("<tr><td>" + x.getoCancha().getoLocal().getNoLocal() + "</td><td>" + x.getoCancha().getNoCancha() + "</td><td>" + x.getFeHorario() + 
				"</td><td>" + x.getNuHoraHorario() + "</td><td>" + x.getoPromocion().getPoDescuento() + "</td></tr>"); 	/*<!-- modifico linea para tabla -- >*/
			}					
			out.println("</table>>"); 									/*<!-- agrego linea para tabla -- >*/
		} else {
			out.println("<font color=red>La variable CANCHAS no tiene valor</font>");
		}
		out.println("</ul>");
	%>
<input type="submit" name="btngrabar" id="btnGrabar" value="Grabar" class="boton"/>
</form>
</body>
</html>